include( routeviewer.pri )

# supporting USB1 devices on Windows
LIBS += "C:\\Coding\\SiLabs\\MCU\\USBXpress\\USBXpress_API\\Host\\x86\\SiUSBXp.lib"
INCLUDEPATH += "C:\\Coding\\SiLabs\\MCU\\USBXpress\\USBXpress_API\\Host\\"
DEFINES += HAVE_USBXPRESS

# supporting USB2 devices on Windows
INCLUDEPATH += "C:\\libusb-win32-device-bin-0.1.12.2\\include"
DEFINES += HAVE_LIBUSB

TEMPLATE = app
TARGET = routeviewer
win32:RC_FILE = windowsico.rc

# install
# target.path = $$[QT_INSTALL_EXAMPLES]/desktop/routeviewerV02
# sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS systray.pro resources images
# sources.path = $$[QT_INSTALL_EXAMPLES]/desktop/routeviewerV02
# INSTALLS += target sources
HEADERS += routeviewergui.h \
    RealtimeController.h \
    ANTlocalController.h \
    ANT.h \
    ANTChannel.h \
    ANTMessage.h \
    ANTMessages.h \
    DeviceConfiguration.h \
    RealtimeData.h \
    Units.h \
    routeviewergui.h
SOURCES += RealtimeController.cpp \
    ANTlocalController.cpp \
    main.cpp \
    DeviceConfiguration.cpp \
    RealtimeData.cpp \
    ANTMessage.cpp \
    ANTChannel.cpp \
    ANT.cpp \
    routeviewergui.cpp
win32 { 
    # Windows only USB support
    SOURCES += USBXpress.cpp \
        LibUsb.cpp
    HEADERS += USBXpress.h \
        LibUsb.h
}
RESOURCES += routeviewer.qrc

QT += core \
    gui \
    xml \
    svg \
    network
    
# For Debug
#CONFIG += console

# For Release
CONFIG += static

FORMS += routeviewergui.ui